home *** CD-ROM | disk | FTP | other *** search
-
- T O U C H u t i l i t y
-
-
- new and improved by Danny Bain
-
- 6-13-85 4:15
- 2.01B
-
- This new and improved Touch utility runs faster, and has
- many options that the older Touch implementations didn't
- have. Among these enhancements are: user preset dates, and
- user preset times for the files to be set to. Along
- with these options, there is the program's ability to select
- the current time, or date, as the setting to stamp the file
- with. I have put a lot of work into making the parser as
- reliable, and flexible as possible. The command (or switch)
- parser, which scans the parameter line for information, allow
- for the switches and the filename to be in any order. The
- switches don't even need a spaces between them, and the
- filename can have wildcards (* and ?), including full paths
- to other disks (b:\util\pascal\*.p?s).
- Following is an example of the commands TOUCH will
- accept as valid:
- { X> = COMMAND.COM prompt }
-
- X>touch/4:15/6-13-1985 b:\util\pascal\*.p?s
-
- with /4:15 setting the time to stamp on the files as 4:15
- with /6-13-1985 setting the time to stamp on the files as
- June 13, 1985
- touch will set these stamps to all files in drive B, in
- directory \util\pascal\ with the .p?s extension
-
- X>touch/:15/--1985 b:\util\pascal\*.p?s
-
- with /:15 setting the time to stamp on the files as 15
- minutes past the system hour
- with /--1985 setting the date to stamp on the files as the
- year 1985 of the month and date of the system
-
- REMEMBER -- the switchs and the filename can be moved
- around, and the switchs can even be left out
-
-
- Touch as written, now runs about 50% faster than the
- older versions. Follows is a graph of the increase in speed
- on different computers with the same versions of the new and
- the old TOUCH.
-
- | benchmark:
- t 100% | +----+
- i 90 % | |Old | X>b:touch *.*
- m 80 % | | | +----+
- e 70 % | |t v | | | with 57 files on the
- 60 % | |o e | | | disk with the HP 150
- u 50 % | |u r | | | and 34 files on the
- s 40 % | |c s | | | disk with the IBM
- e 30 % | |h i | | |
- d 20 % | | o | +----+ | |
- 10 % |_____| n |_| |_| |___ Results:
- / \
- new touch _/ \_new touch new version is
- version on version on 52% faster
- a HP 150 a IBM-PC
-
-
-
- I am running this program on a user support basis, if
- you feel that improvements on useful programs like this
- should go on, please send what ever cash endowment you feel
- is worthy ($5 recomended) to:
-
- Danny Bain
- c/o Engram Outgram Computer Services
- 2219 So. 80th EAve.
- Tulsa OK 749
-
-
-
- thank you!